package bancosys.tec.rtm.monitor;

/**
 * @author Marcio Ribeiro (mmr)
 * @created Sep 18, 2006
 */
public abstract class AbstractChecker implements Checker {
    private boolean lastValue;

    /**
     * {@inheritDoc}
     * 
     * @see bancosys.tec.rtm.monitor.Checker#getLastValue()
     */
    public final boolean getLastValue() {
        return this.lastValue;
    }

    /**
     * {@inheritDoc}
     * 
     * @see bancosys.tec.rtm.monitor.Checker#isOk()
     */
    public final boolean isOk() {
        this.lastValue = this.doIsOk();
        return this.lastValue;
    }

    /**
     * @return boolean
     */
    public abstract boolean doIsOk();
}